package com.jeesite.modules.dataScreen.domain;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public abstract class BaseSearch {
    @ApiModelProperty("页面")
    private int pageNum = 1;

    @ApiModelProperty("页容量")
    private int pageSize = 10;

    public <T> Page<T> getPage() {
        return new Page<>(pageNum, pageSize);
    }
}
